<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="备份SAP HANA数据库时，备份子任务长时间无进度且已备份数据量长时间无变化">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="SAP_HANA_0100.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="SAP_HANA_0112">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>备份SAP HANA数据库时，备份子任务长时间无进度且已备份数据量长时间无变化</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="SAP_HANA_0112"></a><a name="SAP_HANA_0112"></a>
  <h1 class="topictitle1">备份SAP HANA数据库时，备份子任务长时间无进度且已备份数据量长时间无变化</h1>
  <div>
   <div class="section">
    <h4 class="sectiontitle">现象描述</h4>
    <p>备份SAP HANA数据库时，备份子任务长时间无进度，长时间停留在该子任务，且已备份数据量长时间未发生变化：“数据保护代理主机（xxx.xxx.xxx.xx）正在执行备份子任务（xxx-xxx-xxx-xx），已备份数据量：（xx）。”或“客户端（xxx.xxx.xxx.xxc）正在执行备份子任务（xxx-xxx-xxx-xx），已备份数据量：（xx）。”</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">可能原因</h4>
    <p>客户端所在主机硬件资源（<span style="color:#404040;">内存、CPU、存储</span>等）不足。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">处理步骤</h4>
    <ul>
     <li id="SAP_HANA_0112__li1116140133615"><a name="SAP_HANA_0112__li1116140133615"></a><a name="li1116140133615"></a>方案一：<p><a name="SAP_HANA_0112__li1116140133615"></a><a name="li1116140133615"></a>增加硬件资源。您可以使用安装<span style="color:#414142;">SAP HANA数据库后系统</span>自带的Quick Sizer工具，评估主机运行时的硬件需求。通过<span style="color:#404040;">分析用户输入的业务场景数据</span>，<span style="color:#404040;">生成对内存、CPU、存储等关键资源的建议配置</span>后，根据分析结果补充所需的硬件资源。您可以访问<a href="https://www.sap.com/about/benchmark/sizing.quick-sizer.html#quick-sizer" target="_blank" rel="noopener noreferrer">quick-sizer</a>获取相关的指导。</p></li>
     <li>方案二：<p>调整global.ini的相关参数，优化系统的运行效率。相关的参数说明参见<a href="#SAP_HANA_0112__table1979115523914">表1</a>。</p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>在不改变硬件资源的条件下，仅通过调整global.ini的相关参数优化系统运行效率，无法确保新的备份任务能够成功。建议您通过<a href="#SAP_HANA_0112__li1116140133615">方案一</a>、增加所需的硬件资源后再重新进行备份。</p>
       </div>
      </div>
      <div class="tablenoborder">
       <a name="SAP_HANA_0112__table1979115523914"></a><a name="table1979115523914"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="SAP_HANA_0112__table1979115523914" frame="border" border="1" rules="all">
        <caption>
         <b>表1 </b>参数说明
        </caption>
        <colgroup>
         <col style="width:27.089999999999996%">
         <col style="width:43.41%">
         <col style="width:14.540000000000001%">
         <col style="width:14.96%">
        </colgroup>
        <thead align="left">
         <tr>
          <th align="left" class="cellrowborder" valign="top" width="27.089999999999996%" id="mcps1.3.3.2.2.3.2.5.1.1"><p>名称</p></th>
          <th align="left" class="cellrowborder" valign="top" width="43.41%" id="mcps1.3.3.2.2.3.2.5.1.2"><p>说明</p></th>
          <th align="left" class="cellrowborder" valign="top" width="14.540000000000001%" id="mcps1.3.3.2.2.3.2.5.1.3"><p>默认值</p></th>
          <th align="left" class="cellrowborder" valign="top" width="14.96%" id="mcps1.3.3.2.2.3.2.5.1.4"><p>取值范围</p></th>
         </tr>
        </thead>
        <tbody>
         <tr>
          <td class="cellrowborder" valign="top" width="27.089999999999996%" headers="mcps1.3.3.2.2.3.2.5.1.1 "><p>parallel_data_backup_backint_channels</p></td>
          <td class="cellrowborder" valign="top" width="43.41%" headers="mcps1.3.3.2.2.3.2.5.1.2 "><p>备份/恢复时并行使用的备份通道数。备份/恢复期间，此数量的通道将并行写入数据。该参数值越大，对硬件资源的要求越高。</p></td>
          <td class="cellrowborder" valign="top" width="14.540000000000001%" headers="mcps1.3.3.2.2.3.2.5.1.3 "><p>1</p></td>
          <td class="cellrowborder" valign="top" width="14.96%" headers="mcps1.3.3.2.2.3.2.5.1.4 "><p>1~32</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="27.089999999999996%" headers="mcps1.3.3.2.2.3.2.5.1.1 "><p>data_backup_buffer_size</p></td>
          <td class="cellrowborder" valign="top" width="43.41%" headers="mcps1.3.3.2.2.3.2.5.1.2 "><p>备份缓冲区大小（MB）。该参数值越大，占用的内存越多；该参数值越小，占用的CPU资源越多。</p></td>
          <td class="cellrowborder" valign="top" width="14.540000000000001%" headers="mcps1.3.3.2.2.3.2.5.1.3 "><p>512MB</p></td>
          <td class="cellrowborder" valign="top" width="14.96%" headers="mcps1.3.3.2.2.3.2.5.1.4 "><p>128~4096</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="27.089999999999996%" headers="mcps1.3.3.2.2.3.2.5.1.1 "><p>backint_pipe_capacity</p></td>
          <td class="cellrowborder" valign="top" width="43.41%" headers="mcps1.3.3.2.2.3.2.5.1.2 "><p>备份管道容量（Byte）。如果该值为0，则使用操作系统的默认容量。该参数值越大，占用的内存越多；该参数值越小，占用的CPU资源越多。</p></td>
          <td class="cellrowborder" valign="top" width="14.540000000000001%" headers="mcps1.3.3.2.2.3.2.5.1.3 "><p>0</p></td>
          <td class="cellrowborder" valign="top" width="14.96%" headers="mcps1.3.3.2.2.3.2.5.1.4 "><p>-</p></td>
         </tr>
        </tbody>
       </table>
      </div>
      <ol>
       <li>使用PuTTY，登录执行当前备份任务的客户端所在主机。</li>
       <li>执行以下命令，切换到SAP系统用户。<pre class="screen">su - <em>&lt;sid&gt;</em>adm</pre> <p>其中，“sid”为SAP系统ID。例如：</p> <pre class="screen">su - s00adm</pre></li>
       <li>执行以下命令，登录系统数据库。<pre class="screen">hdbsql -i <em>实例id</em> -n <em>系统数据库主节点的hostname</em>:<em>系统数据库的SQL Port</em> -d SYSTEMDB -u <em>系统数据库用户名</em> -p<em> 系统数据库密码</em></pre> <p>如：</p> <pre class="screen">hdbsql -i 00 -n localhost:30013 -d SYSTEMDB -u SYSTEM -p xxxxxxx</pre></li>
       <li>根据需要调整单个或多个参数的取值。
        <ul>
         <li>设置parallel_data_backup_backint_channels：<pre class="screen">alter system alter configuration ('global.ini', 'SYSTEM') set ('backup', 'parallel_data_backup_backint_channels') = '<em>parallel_data_backup_backint_channels的值</em>' with reconfigure;</pre></li>
         <li>设置data_backup_buffer_size：<pre class="screen">alter system alter configuration ('global.ini', 'SYSTEM') set ('backup', 'data_backup_buffer_size') = '<em>data_backup_buffer_size的值</em>' with reconfigure;</pre></li>
         <li>设置backint_pipe_capacity：<pre class="screen">alter system alter configuration ('global.ini', 'SYSTEM') set ('backup', 'backint_pipe_capacity') = '<em>backint_pipe_capacity的值</em>' with reconfigure;</pre></li>
        </ul></li>
      </ol></li>
    </ul>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="SAP_HANA_0100.html">常见问题</a>
    </div>
   </div>
  </div>
 </body>
</html>